<%@page import="javax.print.DocFlavor.STRING"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@page import="com.sbl.bajw.common.web.RequestUnit"%>
<%@page import="com.sbl.bajw.common.PrivilegeUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/prama.jsp" %>
<%
	String tag = RequestUnit.getString("tag");
	HashMap<String, Object> model = (HashMap<String, Object>)request.getAttribute("model");
	List<HashMap<String, Object>> pics = (List<HashMap<String, Object>>)request.getAttribute("pics");
	HashMap<String, Object> voice = (HashMap<String, Object>)request.getAttribute("voice");
%>
<script type="text/javascript" src="${burl }/js/common/soundmanager/script/soundmanager2.js"></script>
<script type="text/javascript" src="${burl }/js/business/manager/prizeAlarm/prizeAlarmDetails.js"></script>

<div class="CommonPanel" id="msg_search_div">
	<input type="hidden" id="model_id" value="${model.ID }"/>
	<div style="float:left;">
		<div style="width:200px;height:200px;overflow: hidden;position: relative;">
			<div id="picContentDiv" style="width:<%=200*pics.size()%>px;position: absolute;left:0">
				<%
					for(int i = 0 ;i<pics.size();i++){
						String imgUrl = BaseUrl +"/"+ pics.get(i).get("SMALLIMGURL");
				%>
				<img width="200" style="float:left" src="<%=imgUrl%>"/>
				<%
					}
				%>
			</div>
		</div>
		<div>
			<button id="preBtn" style="cursor: pointer;">上一张</button>
			<button id="picBtn" style="cursor: pointer;">放大图片</button>
			<button id="nextBtn" style="cursor: pointer;">下一张</button>
		</div>
	</div>
	<table>
		<tr>
			<td class="label">采集人:</td>
			<td class="input" style="width: 150px;">
				${model.SHOWNAME }
			</td>
			<td class="label">账号:</td>
			<td class="input" style="width: 150px;">
				${model.USERNAME }
			</td>
			<td class="label">单位:</td>
			<td class="input" style="width: 150px;">
				${model.DEPTNAME }
			</td>
		</tr>
		<tr>
			<td class="label">拍照类型:</td>
			<td class="input" style="width: 150px;">
				${model.NAME }
			</td>
			<td class="label">现场地址:</td>
			<td class="input" colspan="3">
				${model.ADDR }
			</td>
		</tr>
		<tr>
			<td class="label">移动网络:</td>
			<td class="input">
				<%
					if("0".equals(model.get("MNC"))){
				%>
				中国移动
				<%
					}else if("1".equals(model.get("MNC"))){
				%>
				中国联通
				<%
					}else if("2".equals(model.get("MNC"))){
				%>
				中国电信
				<%
					}
				%>
			</td>
			<td class="label">内容描述:</td>
			<td class="input" colspan="3">
				${model.CONTENT }
			</td>
		</tr>
		<tr>
			<td class="label">位置区域码:</td>
			<td class="input">
				${model.LAC }
			</td>
			<td class="label">基站编号：</td>
			<td class="input">
				${model.CID }
			</td>
			<td class="label">基站信号强度：</td>
			<td class="input">
				${model.BSSS }
			</td>
		</tr>
		<tr>
			<td>
				<%
				if(voice.get("FILEPATH") != null && !"".equals(voice.get("FILEPATH"))){
				%>
				<img src="${burl }/images/playVoice.png" url="${voice.FILEPATH }" id="play" title="播放" style="cursor: pointer;" />
				<%
				}
				%>
			</td>
		</tr>
	</table>
	<input id="lat" type="hidden" value="${model.MAPY }"/>
	<input id="lon" type="hidden" value="${model.MAPX }"/>
	<input id=parentMenu type="hidden" value="/PrizeAlarm/List.do"/>
	<div style="text-align: center;">
		<%
		if("process".equals(tag)){
			if("4".equals(model.get("IS_QUELITY"))){
		%>
		<button class="commonBtn" style="font-size: 20px" id="processBtn">处理</button>
		<%		
			}else{
				if(PrivilegeUtil.GetInstance().hasPrivilege("audit_again")){
		%>
		<button class="commonBtn" style="font-size: 20px" id="processBtn">再处理</button>
		<%			
				}
			}
		}
		%>
		<button class="commonBtn" style="font-size: 20px" id="backBtn" onclick="window.close()">关闭</button>
	</div>
	<div style="clear: both;margin-bottom: 4px"></div>
	<div id="bmap" style="height: 270px;width: 100%;"></div>
</div>